import request from '@/utils/request'

const api = {
    apipath: '/param/cszc',
}
// 查询
export function getList(params)
{
    return request({
        url: api.apipath + '/list',
        method: 'get',
        params: params
    })
}
// 查询详情
export function selectOne(unid)
{
    return request({
        url: api.apipath + '/' + unid,
        method: 'get'
    })
}
// 修改
export function save(params)
{
    return request({
        url: api.apipath,
        method: 'post',
        data: params
    })
}
// 删除
export function deleteOne(params)
{
    return request({
        url: api.apipath,
        method: 'delete',
        params: params
    })
}
// 导出
export function exporta(data)
{
    return request({
        url: api.apipath + '/export',
        method: 'get',
        params: params
    })
}

// 查询参数
export function getCs(data)
{
    return request({
        url: api.apipath + '/csname',
        method: 'get',
        params: { name: data }
    })
}


// 获取机构人员树
export function getListPersonTree(params)
{
    return request({
        url: '/param/cssz/listOrgPersonTree',
        method: 'get',
        params: params
    })
}

//获取模块下的参数数量
export function getCsNumberListByModule(params)
{
    return request({
        url: '/param/cszc/getCsNumberListByModule',
        method: 'get',
        params: params
    })
}

//查询是否使用插key登录根据登录名
export function getIsUserKeyByShortName(params)
{
    return request({
        url:'/loginByUkey/getIsUserKeyByShortName',
        method:"get",
        params
    })
}